package utility;

import java.util.List;

public final class ListIndexHelper {

	public static int getLastIndex(List<?> inputList) {
		return lastIndex(inputList);
	}

	public static Object getLastItem(List<?> inputList) {
		return inputList.get(lastIndex(inputList));
	}

	private static int lastIndex(List<?> inputList) {
		return inputList.size() - 1;
	}
}
